import os,sys

# 获取python路径
py_path = sys.path
# 查找python.exe
python = []
for path in py_path:
    try:
        files = os.listdir(path) 
        for f in files:
            if f == 'python.exe' or f == 'python3.exe':
                python.append(path)
    except:
        pass

# 获取系统环境变量
win_path = os.getenv('path').split(';')

